$OpenBSD: patch-Makefile,v 1.2 2016/01/12 09:22:08 czarkoff Exp $
--- Makefile.orig	Thu Dec 17 14:40:22 2015
+++ Makefile	Thu Jan  7 17:39:06 2016
@@ -24,8 +24,6 @@ LIBRE_MK  := $(shell [ -f /usr/local/share/re/re.mk ] 
 	echo "/usr/local/share/re/re.mk")
 endif
 
-include $(LIBRE_MK)
-
 # List of modules
 MODULES += fir
 MODULES += g711
@@ -81,15 +79,13 @@ all: $(SHARED) $(STATIC)
 
 
 $(SHARED): $(OBJS)
-	@echo "  LD      $@"
-	@$(LD) $(LFLAGS) $(SH_LFLAGS) $^ -L$(LIBRE_SO) -lre $(LIBS) -o $@
+	$(LD) $(LFLAGS) $(SH_LFLAGS) $^ -lre $(LIBS) -o $@
 
 
 $(STATIC): $(OBJS)
-	@echo "  AR      $@"
-	@$(AR) $(AFLAGS) $@ $^
+	$(AR) $(AFLAGS) $@ $^
 ifneq ($(RANLIB),)
-	@$(RANLIB) $@
+	$(RANLIB) $@
 endif
 
 librem.pc:
@@ -106,17 +102,15 @@ librem.pc:
 	@echo 'Libs: -L$${libdir} -lrem -lre' >> librem.pc
 	@echo 'Cflags: -I$${includedir}' >> librem.pc
 
-$(BUILD)/%.o: src/%.c $(BUILD) Makefile $(MK) $(MODMKS)
-	@echo "  CC      $@"
-	@$(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
+$(BUILD)/%.o: src/%.c $(BUILD) Makefile $(MODMKS)
+	$(CC) $(CFLAGS) -c $< -o $@
 
 
-$(BUILD)/%.o: src/%.S $(BUILD) Makefile $(MK) $(MODMKS)
-	@echo "  AS      $@"
-	@$(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
+$(BUILD)/%.o: src/%.S $(BUILD) Makefile $(MODMKS)
+	$(CC) $(CFLAGS) -c $< -o $@
 
 
-$(BUILD): Makefile $(MK) $(MODMKS)
+$(BUILD): Makefile $(MODMKS)
 	@mkdir -p $(patsubst %,$(BUILD)/%,$(sort $(dir $(SRCS))))
 	@touch $@
 
@@ -145,9 +139,7 @@ uninstall:
 -include test.d
 
 test.o:	test.c
-	@echo "  CC      $@"
-	@$(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
+	$(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
 
 test$(BIN_SUFFIX): test.o $(SHARED) $(STATIC)
-	@echo "  LD      $@"
-	@$(LD) $(LFLAGS) $< -L. -lrem -lre $(LIBS) -o $@
+	$(LD) $(LFLAGS) $< -L. -lrem -lre $(LIBS) -o $@
